package com.netposa.datawarehouse.aggregator.web.model;

import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public enum SearchDataType {
   FACE(1),
   VEHICLE(4),
   NONMOTOR(8),
   BODY(2);

   private static final Logger log = LoggerFactory.getLogger(SearchDataType.class);
   private int intValue;

   private SearchDataType(int intValue) {
      this.intValue = intValue;
   }

   public static SearchDataType getEnumType(String type) {
      if (StringUtils.isNotBlank(type)) {
         try {
            return valueOf(type);
         } catch (Exception var2) {
            log.error("类型解析错误：{}", type);
            return null;
         }
      } else {
         return null;
      }
   }

   public int getIntValue() {
      return this.intValue;
   }
}
